export function deleteEmptyProperty(json) {
  const object = json
  //
  for (const i in object) {
    const value = object[i]
    if (typeof value === 'object') {
      if (Array.isArray(value)) {
        if (value.length === 0) {
          delete object[i]
          continue
        }
      }
      this.deleteEmptyProperty(value)
    } else {
      if (value === '' || value === null || value === undefined) {
        delete object[i]
      }
    }
  }
  return object
}
